<!-- Documentation produced by the Html generator of Bouml (http://bouml.free.fr) -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Class SmaLauncher</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body bgcolor="#ffffff">

<div class = "title">Class SmaLauncher</div>
<p></p>

<!-- ============================================================= -->

<a name="refclass128130"></a>
<p>smaLauncher est la aprtie du launcher qui s'occupe du systeme multi agents. C'est donc lui qui va creer le kernel, et les differents agents.<br />@author Etienne<br />@version 0.1<br /></p>
<p>Declaration :</p><ul>
<li>Java : public class SmaLauncher extends <a href="class128258.html#refclass128258"><b>KeyListener</b></a> </li></ul><p>Artifact : <a href="index.html#refartifact128130"><b>SmaLauncher</b></a></p>
<div class="sub">
<a name="refattribute128002"></a>
<table><tr><td><div class="element">Attribute <b>kernel</b></div></td></tr></table>
<p>Le kernel du SMA<br /><br /></p><p>Declaration :</p><ul><li>Uml : - kernel : Kernel</li><li>Java : private Kernel kernel</li></ul><a name="refrelation128130"></a>
<table><tr><td><div class="element">Relation <b>environment (&lt;unidirectional association&gt;)</b></div></td></tr></table><p>L'environnement dans lequel les agents vont évoluer :<br /><br /><br /></p><p>Declaration :</p><ul><li>Uml : - environment : <a href="class128386.html#refclass128386"><b>LocalEnvironment</b></a></li><li>Java : private <a href="class128386.html#refclass128386"><b>LocalEnvironment</b></a> environment</li></ul><a name="refrelation128258"></a>
<table><tr><td><div class="element">Relation <b>goalAgent (&lt;unidirectional association&gt;)</b></div></td></tr></table><p>L'agent qui gere l'objectif de l'avant du vehicule<br /><br /><br /></p><p>Declaration :</p><ul><li>Uml : - goalAgent : <a href="class128514.html#refclass128514"><b>GoalAgent</b></a></li><li>Java : private <a href="class128514.html#refclass128514"><b>GoalAgent</b></a> goalAgent</li></ul><a name="refrelation128386"></a>
<table><tr><td><div class="element">Relation <b>listeAgents (&lt;unidirectional association&gt;)</b></div></td></tr></table><p>la liste des agents que l'on cree nous meme.<br /><br /></p><p>Declaration :</p><ul><li>Uml : - listeAgents : <a href="class128642.html#refclass128642"><b>StandartAgent</b></a> =  new ArrayList&lt;StandartAgent&gt;()</li><li>Java : private List&lt;<a href="class128642.html#refclass128642"><b>StandartAgent</b></a>&gt; listeAgents</li></ul><p>Stereotype: List</p>
<a name="refoperation128258"></a>
<table><tr><td><div class="element">Operation <b>SmaLauncher</b></div></td></tr></table><p>Constructeur. Il lance le kernel puis les agents de l'application. A savoir (et dans l'ordre) : GoalAgent<br />@param _env<br /></p><p>Declaration :</p><ul><li>Uml : + SmaLauncher(inout _env : <a href="class128386.html#refclass128386"><b>LocalEnvironment</b></a>) : </li><li>Java : public SmaLauncher(<a href="class128386.html#refclass128386"><b>LocalEnvironment</b></a> _env)</li></ul><a name="refoperation128386"></a>
<table><tr><td><div class="element">Operation <b>startSimu</b></div></td></tr></table><p>Cette fonction permet de lancer tous les agents :<br /></p><p>Declaration :</p><ul><li>Uml : + startSimu() : void</li><li>Java : public void startSimu()</li></ul><a name="refoperation128514"></a>
<table><tr><td><div class="element">Operation <b>addGuiAgent</b></div></td></tr></table><p>Permet de creer l'agent GUI. C'est lui qui actualisera le JPanel<br />@param _panel<br /></p><p>Declaration :</p><ul><li>Uml : + addGuiAgent(inout _panel : JPanel) : void</li><li>Java : public void addGuiAgent(JPanel _panel)</li></ul><a name="refoperation128642"></a>
<table><tr><td><div class="element">Operation <b>getGoalAgent</b></div></td></tr></table><p>Retourne le GoalAgent<br />@return GoalAgent<br /></p><p>Declaration :</p><ul><li>Uml : + getGoalAgent() : <a href="class128514.html#refclass128514"><b>GoalAgent</b></a></li><li>Java : public <a href="class128514.html#refclass128514"><b>GoalAgent</b></a> getGoalAgent()</li></ul><a name="refoperation128770"></a>
<table><tr><td><div class="element">Operation <b>keyPressed</b></div></td></tr></table><p>Arrete le kernel si on appuie sur Q. Le listener est transmis par la frame.<br /></p><p>Declaration :</p><ul><li>Uml : + keyPressed(inout e : KeyEvent) : void</li><li>Java : public void keyPressed(KeyEvent e)</li></ul><p> Java annotation(s) :<ul>@Override<br /></ul><a name="refoperation128898"></a>
<table><tr><td><div class="element">Operation <b>keyReleased</b></div></td></tr></table><p>Declaration :</p><ul><li>Uml : + keyReleased(inout e : KeyEvent) : void</li><li>Java : public void keyReleased(KeyEvent e)</li></ul><p> Java annotation(s) :<ul>@Override<br /></ul><a name="refoperation129026"></a>
<table><tr><td><div class="element">Operation <b>keyTyped</b></div></td></tr></table><p>Declaration :</p><ul><li>Uml : + keyTyped(inout e : KeyEvent) : void</li><li>Java : public void keyTyped(KeyEvent e)</li></ul><p> Java annotation(s) :<ul>@Override<br /></ul><a name="refoperation129154"></a>
<table><tr><td><div class="element">Operation <b>getListeAgents</b></div></td></tr></table><p>Renvoie la liste des agents utilises par notre SMA, mais pas ceux du systeme janus (comme le kernel, le scheduler...). Attention la liste est synchronisee<br />@return the listeAgents<br /></p><p>Declaration :</p><ul><li>Uml : + getListeAgents() : <a href="class128642.html#refclass128642"><b>StandartAgent</b></a></li><li>Java : public synchronized List&lt;<a href="class128642.html#refclass128642"><b>StandartAgent</b></a>&gt; getListeAgents()</li></ul></div>
<p>All public operations : <a href="class128130.html#refoperation128514"><b>addGuiAgent</b></a> , <a href="class128130.html#refoperation128642"><b>getGoalAgent</b></a> , <a href="class128130.html#refoperation129154"><b>getListeAgents</b></a> , <a href="class128130.html#refoperation128770"><b>keyPressed</b></a> , <a href="class128130.html#refoperation128898"><b>keyReleased</b></a> , <a href="class128130.html#refoperation129026"><b>keyTyped</b></a> , <a href="class128130.html#refoperation128386"><b>startSimu</b></a> </p>
</body>
</html>
